package com.example.demo.service.impl;

import com.example.demo.entity.Job;
import com.example.demo.mapper.JobRepository;
import com.example.demo.service.JobService;
import org.springframework.stereotype.Service;

/**
 * @author honeypeach
 * @date 2023/3/24 19:15
 */
@Service
public class JobServiceImpl implements JobService {


    private  final JobRepository jobRepository;

    public JobServiceImpl(JobRepository jobRepository) {
        this.jobRepository = jobRepository;
    }


    @Override
    public Job findById(String jobId) {
        return jobRepository.selectById(jobId);
    }
}
